<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/template/template2.xhtml">

	<ui:define name="content1">
		<script src="http://maps.google.com/maps/api/js?sensor=false"
			type="text/javascript"></script>
		<h:form id="hForm">
			<p:growl id="growl" showDetail="true" />
			<div class="container">
				<p:accordionPanel multiple="true" style="width:auto !important">

					<p:tab title="General information">
						<h:panelGrid class="table" columns="2" cellpadding="10">
							<p:graphicImage
								value="/resources/images/#{houseBean.house.housePicture}"
								width="320" height="240" />
							<h:outputText value="#{houseBean.house.houseName}" />
						</h:panelGrid>
					</p:tab>

					<p:tab title="Address">
						<h:panelGrid class="table" columns="2" cellpadding="10">
							<h:outputLabel>Address</h:outputLabel>
							<h:outputText value="#{houseBean.house.address}" />

							<h:outputLabel>Postal code</h:outputLabel>
							<h:outputText value="#{houseBean.house.postalCode}"></h:outputText>
						</h:panelGrid>
					</p:tab>

					<p:tab title="Location">
						<h:panelGrid class="table" columns="2" cellpadding="10">
							<p:gmap type="HYBRID" zoom="15" center="#{houseBean.mapCenter}"
								style="width:380px;height:300px"
								model="#{houseBean.simpleModel}">
								<p:ajax event="overlaySelect"
									listener="#{houseBean.onMarkerSelect}" update=":hForm:growl" />
							</p:gmap>
						</h:panelGrid>
					</p:tab>
				</p:accordionPanel>



			</div>
		</h:form>
	</ui:define>

</ui:composition>
